<template>
<div class="public-common">
    <!--业务办理 && 公司投诉处理-->
    <div class="public-title">投诉处理信息列表</div>
    <div class="public-searchbox">
        <el-row>
            <el-col :span="6">
                <el-input placeholder="请输入内容" v-model="form.test" class="input-with-select"  size="mini" />
            </el-col>
            <el-col :span="18">
                <el-button type="primary" icon="el-icon-search" size="mini"  style="margin-left:10px;">搜索</el-button>
                <el-button type="primary" icon="el-icon-view" size="mini" >投诉处理</el-button>
                <el-button type="warning" icon="el-icon-printer" size="mini" >打印</el-button>
            </el-col>
        </el-row>
    </div>
    <el-scrollbar class="public-scroll">
        <el-table :data="tabledata" size="mini" border stripe header-row-class-name="textcenter">
            <el-table-column
            type="selection"
            width="55" fixed="left">
            </el-table-column>
            <el-table-column
                label="投诉编号">
                <template slot-scope="scope">
                    {{scope.row.carId}}
                </template>
            </el-table-column>                
            <el-table-column
                label="被投诉车号">
                <template slot-scope="scope">
                    {{scope.row.carType}}
                </template>
            </el-table-column>
            <el-table-column
                label="记录日期">
                <template slot-scope="scope">
                    {{scope.row.carType}}
                </template>
            </el-table-column>
            <el-table-column
                label="投诉处理状态">
                <template slot-scope="scope">
                    {{scope.row.carType}}
                </template>
            </el-table-column>
            <el-table-column
                label="投诉方式">
                <template slot-scope="scope">
                    {{scope.row.carType}}
                </template>
            </el-table-column>
            <el-table-column
                label="是否是公司投诉">
                <template slot-scope="scope">
                    {{scope.row.carType}}
                </template>
            </el-table-column>
            <el-table-column
                label="投诉人">
                <template slot-scope="scope">
                    {{scope.row.carType}}
                </template>
            </el-table-column>
            <el-table-column
                label="联系电话">
                <template slot-scope="scope">
                    {{scope.row.carType}}
                </template>
            </el-table-column>

            <el-table-column
                label="乘车点">
                <template slot-scope="scope">
                    {{scope.row.carId}}
                </template>
            </el-table-column>                
            <el-table-column
                label="投诉项目名称">
                <template slot-scope="scope">
                    {{scope.row.carType}}
                </template>
            </el-table-column>
            <el-table-column
                label="投诉内容">
                <template slot-scope="scope">
                    {{scope.row.carType}}
                </template>
            </el-table-column>
            <el-table-column
                label="投诉时间">
                <template slot-scope="scope">
                    {{scope.row.carType}}
                </template>
            </el-table-column>
            <el-table-column
                label="转办时间">
                <template slot-scope="scope">
                    {{scope.row.carType}}
                </template>
            </el-table-column>
            <el-table-column
                label="调查经过">
                <template slot-scope="scope">
                    {{scope.row.carType}}
                </template>
            </el-table-column>
            <el-table-column
                label="单位意见">
                <template slot-scope="scope">
                    {{scope.row.carType}}
                </template>
            </el-table-column>
            <el-table-column
                label="管理处结果">
                <template slot-scope="scope">
                    {{scope.row.carType}}
                </template>
            </el-table-column>
            <el-table-column
                label="单位定性">
                <template slot-scope="scope">
                    {{scope.row.carType}}
                </template>
            </el-table-column>
            <el-table-column
                label="结案时间">
                <template slot-scope="scope">
                    {{scope.row.carId}}
                </template>
            </el-table-column>                
            <el-table-column
                label="乘客满意度">
                <template slot-scope="scope">
                    {{scope.row.carType}}
                </template>
            </el-table-column>
            <el-table-column
                label="受理时间">
                <template slot-scope="scope">
                    {{scope.row.carType}}
                </template>
            </el-table-column>
            <el-table-column
                label="投诉经办人">
                <template slot-scope="scope">
                    {{scope.row.carType}}
                </template>
            </el-table-column>
            <el-table-column
                label="投诉调查人">
                <template slot-scope="scope">
                    {{scope.row.carType}}
                </template>
            </el-table-column>
            <el-table-column
                label="投诉处理人">
                <template slot-scope="scope">
                    {{scope.row.carType}}
                </template>
            </el-table-column>            
            <el-table-column
                label="操作" fixed="right">
                <template slot-scope="scope">
                    <el-button type="primary" size="mini">查看</el-button>
                </template>
            </el-table-column> 
            
        </el-table>
    </el-scrollbar>
    <el-pagination
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page="page.now"
        :page-sizes="page.sizes"
        :page-size="page.pagesize"
        layout="total, sizes, prev, pager, next, jumper"
        :total="page.total" style="margin-top:10px;">
    </el-pagination>

    <!--dialog-->
    <el-dialog title="投诉处理表" :visible.sync="dialog.isVisible" width="60%" top="8vh">
        <el-scrollbar style="height:380px">
            <el-row>
                <el-col :span="12">
                    <el-form label-width="120px" size="mini">
                        <el-form-item label="被投诉车号">
                            <el-select v-model="dialog.carid" placeholder="请选择" style="width:100%;">
                                <el-option
                                v-for="item in select.carids"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value">
                                </el-option>
                            </el-select>
                        </el-form-item>
                        <el-form-item label="票号">
                            <el-input v-model="dialog.test"></el-input>
                        </el-form-item>
                        <el-form-item label="驾驶员">
                            <el-select v-model="dialog.driver" placeholder="请选择" style="width:100%;">
                                <el-option
                                v-for="item in select.drivers"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value">
                                </el-option>
                            </el-select>
                        </el-form-item>
                        <el-form-item label="资格证号">
                            <el-input v-model="dialog.test"></el-input>
                        </el-form-item>
                        <el-form-item label="投诉项目">
                            <el-select multiple  v-model="dialog.param" placeholder="请选择" style="width:100%;">
                                <el-option
                                v-for="item in select.params"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value">
                                </el-option>
                            </el-select>
                        </el-form-item>
                        <el-form-item label="乘车点">
                            <el-input v-model="dialog.test"></el-input>
                        </el-form-item>
                        <el-form-item label="投诉方式">
                            <el-select v-model="dialog.complainttype" placeholder="请选择" style="width:100%;">
                                <el-option
                                v-for="item in select.complainttypes"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value">
                                </el-option>
                            </el-select>
                        </el-form-item>
                        <el-form-item label="投诉内容">
                            <el-input type="textarea" :autosize="{ minRows: 2, maxRows: 6 }" v-model="dialog.test"></el-input>
                        </el-form-item>
                        
                        <el-form-item label="调查经过">
                            <el-input type="textarea" :autosize="{ minRows: 2, maxRows: 6 }" v-model="dialog.test"></el-input>
                        </el-form-item>
                        <el-form-item label="单位定性">
                            <el-select v-model="dialog.companyqua" placeholder="请选择" style="width:100%;">
                                <el-option
                                v-for="item in select.companyquas"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value">
                                </el-option>
                            </el-select>
                        </el-form-item>
                        <el-form-item label="处理结果">
                            <el-input type="textarea" :autosize="{ minRows: 2, maxRows: 6 }" v-model="dialog.test"></el-input>
                        </el-form-item>
                        <el-form-item label="调查时间">
                            <el-date-picker
                            v-model="dialog.name"
                            type="date"
                            format="yyyy-MM-dd"
                            value-format="yyyy-MM-dd"
                            placeholder="选择日期" style="width:100%;">
                            </el-date-picker>
                        </el-form-item>
                    </el-form>
                </el-col>
                <el-col :span="12">
                    <el-form label-width="120px" size="mini">
                        <el-form-item label="投诉编号">
                            <el-input v-model="dialog.test"></el-input>
                        </el-form-item>
                        <el-form-item label="手动编号">
                            <el-input v-model="dialog.test"></el-input>
                        </el-form-item>
                        <el-form-item label="公司投诉">
                            <el-checkbox v-model="dialog.iscompanyts">备选项</el-checkbox>
                        </el-form-item>
                        <el-form-item label="投诉时间">
                            <el-date-picker
                            v-model="dialog.test"
                            type="datetime"
                            format="yyyy-MM-dd HH:mm"
                            value-format="yyyy-MM-dd HH:mm"
                            placeholder="选择日期时间" style="width:100%;">
                            </el-date-picker>
                        </el-form-item>
                        <el-form-item label="投诉时效性">
                            <el-row>
                                <el-col :span="10">
                                    <el-input v-model="dialog.test"></el-input>
                                </el-col>
                                <el-col :span="13" :offset="1">
                                    <el-select v-model="dialog.unit" placeholder="请选择" style="width:100%;">
                                        <el-option
                                        v-for="item in select.units"
                                        :key="item.value"
                                        :label="item.label"
                                        :value="item.value">
                                        </el-option>
                                    </el-select>
                                </el-col>
                            </el-row>               
                        </el-form-item>
                        <el-form-item label="投诉人">
                            <el-input v-model="dialog.test"></el-input>
                        </el-form-item>
                        <el-form-item label="联系电话">
                            <el-input v-model="dialog.test"></el-input>
                        </el-form-item>
                        
                        <el-form-item label="受理时间">
                            <el-date-picker
                            v-model="dialog.test"
                            type="datetime"
                            format="yyyy-MM-dd HH:mm"
                            value-format="yyyy-MM-dd HH:mm"
                            placeholder="选择日期时间" style="width:100%;">
                            </el-date-picker>
                        </el-form-item>
                        <el-form-item label="转办时间">
                            <el-date-picker
                            v-model="dialog.test"
                            type="datetime"
                            format="yyyy-MM-dd HH:mm"
                            value-format="yyyy-MM-dd HH:mm"
                            placeholder="选择日期时间" style="width:100%;">
                            </el-date-picker>
                        </el-form-item>
                        <el-form-item label="记录日期">
                            <el-date-picker
                            v-model="dialog.test"
                            type="date"
                            format="yyyy-MM-dd"
                            value-format="yyyy-MM-dd"
                            placeholder="选择日期时间" style="width:100%;">
                            </el-date-picker>
                        </el-form-item>
                        <el-form-item label="管理处结果">
                            <el-select v-model="dialog.glcresult" placeholder="请选择" style="width:100%;">
                                <el-option
                                v-for="item in select.glcresult"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value">
                                </el-option>
                            </el-select>
                        </el-form-item>
                        <el-form-item label="罚款金额">
                            <el-input v-model="dialog.test"></el-input>
                        </el-form-item>
                        <el-form-item label="处罚票号">
                            <el-input v-model="dialog.test"></el-input>
                        </el-form-item>
                        <el-form-item label="投诉扣分">
                            <el-input v-model="dialog.test"></el-input>
                        </el-form-item>
                        <el-form-item label="乘客满意度">
                            <el-select v-model="dialog.satisfaction" placeholder="请选择" style="width:100%;">
                                <el-option
                                v-for="item in select.satisfactions"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value">
                                </el-option>
                            </el-select>
                        </el-form-item>
                        <el-form-item label="回访人">
                            <el-input v-model="dialog.test"></el-input>
                        </el-form-item>
                        <el-form-item label="投诉处理人">
                            <el-input v-model="dialog.test"></el-input>
                        </el-form-item>
                        <el-form-item label="结案时间">
                            <el-date-picker
                            v-model="dialog.test"
                            type="date"
                            format="yyyy-MM-dd"
                            value-format="yyyy-MM-dd"
                            placeholder="选择日期时间" style="width:100%;">
                            </el-date-picker>
                        </el-form-item>
                    </el-form>
                </el-col>
            </el-row>
        </el-scrollbar>
        <div class="textcenter" style="margin-top:10px;">
            <el-button type="primary">确定</el-button>  
            <el-button type="info" @click="dialog.isVisible = false">返回</el-button>
        </div>
        
    </el-dialog>
</div>
</template>
<script>
export default {
    data(){
        return {
            form:{
                test:''
            },
            tabledata:[],
            page:{
              now:1,
              pagesize:10,
              sizes:[2,10, 20, 50, 100],
              total:0,
              key:''
            },
            select:{
                carids:[],
                drivers:[],
                cardtypes:[],
                params:[
                    {label:'车内环境差',value:'车内环境差'},
                    {label:'绕路',value:'绕路'},
                    {label:'不按标准收费',value:'不按标准收费'},
                    {label:'无故拒载',value:'无故拒载'},
                    {label:'故意绕道',value:'故意绕道'},
                    {label:'不出具专用发票',value:'不出具专用发票'},
                    {label:'计价器失准',value:'计价器失准'},
                    {label:'不使用计价器',value:'不使用计价器'},
                    {label:'载客途中徕客',value:'载客途中徕客'},
                    {label:'未按规范标准服务',value:'未按规范标准服务'},
                    {label:'中断服务',value:'中断服务'},
                    {label:'车辆交无证人员',value:'车辆交无证人员'},
                    {label:'据不配合调查处理投诉',value:'据不配合调查处理投诉'},
                    {label:'未按规定使用交接牌、导向牌或停用牌',value:'未按规定使用交接牌、导向牌或停用牌'},
                    {label:'其他',value:'其他'}
                ],
                glcresult:[
                    {label:'有责处罚',value:'有责处罚'},
                    {label:'责令更正',value:'责令更正'},
                    {label:'调解处理',value:'调解处理'},
                    {label:'备案/备查',value:'备案/备查'},
                    {label:'书面撤诉',value:'书面撤诉'},
                    {label:'无效',value:'无效'},
                    {label:'待处理',value:'待处理'},
                    {label:'未按时结案',value:'未按时结案'},
                    {label:'未结案',value:'未结案'}
                ],
                complainttypes:[
                    {label:'电话',value:'电话'},
                    {label:'网站',value:'网站'},
                    {label:'媒体',value:'媒体'}
                ],
                satisfactions:[
                    {label:'满意',value:'满意'},
                    {label:'基本满意',value:'基本满意'},
                    {label:'不满意',value:'不满意'}
                ],
                disposestyles:[
                    {label:'处理中',value:'处理中'},
                    {label:'处理完',value:'处理完'}
                ],
                units:[
                    {label:'工作日',value:'工作日'},
                    {label:'小时',value:'小时'}
                ],
                companyquas:[]
            },
            dialog:{
                isVisible:false,
                carid:'',
                driver:'',
                cardtype:'',
                mark:'',
                disposestyle:'',
                iscompanyts:true
            }
        }
    },
    mounted(){
        
    },
    methods:{
        handleChange(file, fileList){
            console.log("file",file)
        },
        search(){
            alert("search")
        },
        //分页
        handleSizeChange(pagesize){
            this.page.pagesize = pagesize;
            this.search(true,true);
        },
        handleCurrentChange(pageno){
            this.page.now = pageno;
            this.search(true,true);
        }

    }
}
</script>